export const siftFile = (key, list) => {
  if (key === '0') return [...list]
  const arr = {
    "0": [],//全部
    "1": ['lnvnote'],//笔记
    "2": ['txt', 'doc', 'docx', 'ppt', 'pptx', 'pdf'],
    "3": ['jpg', 'png', 'jpeg', 'gif', 'bmp', 'webp', 'tif', 'ico', 'svg', 'psd'],
    "4": ['mp4', 'mov', 'wmv', 'avi', 'fiv', 'mkv', 'mpg', 'rmvb'],
  }
  return list.filter(item => arr[key].indexOf(item.suffix.replace('.', '')) >= 0)
}
